<?php


namespace App\Http\Controllers\Admin;


use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;

class YjjyController  extends Controller
{
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('auth:admin');
    }

    public function index()
    {
        return view('admin.yjjy.index');
    }

    public function list()
    {
        $list = DB::table('yjjy')
            ->orderBy('id', 'desc')
            ->paginate(10);
        return successResp($list);
    }
}
